package wxy.studentmanage.service.impl;

import wxy.studentmanage.bean.Grade;
import wxy.studentmanage.mapper.GradeMapper;
import wxy.studentmanage.service.GradeService;

import java.util.List;

public class GradeServiceImpl implements GradeService {
    private GradeMapper gradeMapper;
    public void setGradeMapper(GradeMapper gradeMapper) {
        this.gradeMapper = gradeMapper;
    }

    @Override
    public List<Grade> allGrade() {
        return gradeMapper.allGrade();
    }

    @Override
    public int addGrade(Grade grade) {
        return gradeMapper.addGrade(grade);
    }

    @Override
    public int deleteGradeById(int wxy_id) {
        return gradeMapper.deleteGradeById(wxy_id);
    }

    @Override
    public Grade queryGradeById(int wxy_id) {
        return gradeMapper.queryGradeById(wxy_id);
    }

    @Override
    public int updateGrade(Grade grade) {
        return gradeMapper.updateGrade(grade);
    }


}
